{% block exfile %}{% endblock %}

{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}简历平台{% endblock %}

<!-- 主菜单 -->
{% block navbar %}
<div class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle"
                data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">
                <span class="glyphicon glyphicon-home"></span>简历平台
            </a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav  me-auto">
                <li>
                    <a href="/regist1">
                        <span class="glyphicon glyphicon-plus"></span>
                        用户注册
                    </a>
                </li>
                <li>
                    <a href="{{ url_for('change') }}">
                        <span class="glyphicon glyphicon-edit"></span>
                        密码修改
                    </a>
                </li>
                <li>
                    <a href="{{ url_for('email') }}">
                        <span class="glyphicon glyphicon-envelope"></span>
                        发送邮件
                    </a>
                </li>
                <li>
                    {% if current_user.is_authenticated %}
                        <a href="{{ url_for('logout') }}">
                            <span class="glyphicon glyphicon-log-out"></span>
                            退出
                        </a>
                    {% else %}
                        <a href="{{ url_for('login') }}">
                            <span class="glyphicon glyphicon-log-in"></span>
                            登录
                        </a>
                    {% endif %}
                </li>
            </ul>
        </div>
    </div>
</div>
{% endblock %}

<!-- 页面 -->
{% block content %}
    <div id="alert">
        <!-- 显示flash提示框 -->
        {% for message in get_flashed_messages(with_categories = True) %}
            <div class="alert alert-{{ message[0] }} alert-dismissable">
                <button type="button" 
                        class="close" 
                        data-dismiss="alert" 
                        aria-hidden="true">
                    &times;
                </button>
                {{ message[1] }}
            </div>
         {% endfor %}
    </div>
    <div class="container">
        {% block page_content %}
        {% endblock %}
    </div>
    <div class="container">
        {% block footer %}
            <hr/>
            <div class="text-center text-muted">
                版权所有，免费使用<br />
                地址：新疆乌鲁木齐
            </div>
        {% endblock %}
    </div>
{% endblock %}
